<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="GoogleAPI,be.boulevart.google.GoogleAPI,blogs,books,calculator,currencyConverter,dictionary,feeds,images,local,news,patents,suggest,translate,videos,weather,web" name="keywords">
<title>be.boulevart.google.GoogleAPI</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'GoogleAPI - 'Google AS3 API Library'';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?be/boulevart/google/GoogleAPI.html&amp;be/boulevart/google/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;GoogleAPI</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class GoogleAPI"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">be.boulevart.google</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class GoogleAPI</td>
</tr>
</table>
<p></p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#blogs">blogs</a> : <a href="api/search/blogs/GoogleBlogSearch.html">GoogleBlogSearch</a>
<div class="summaryTableDescription">
   Google Blog Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#books">books</a> : <a href="api/search/books/GoogleBookSearch.html">GoogleBookSearch</a>
<div class="summaryTableDescription">
   Google Book Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#calculator">calculator</a> : <a href="api/calculator/GoogleCalculator.html">GoogleCalculator</a>
<div class="summaryTableDescription">
   Google calculator
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#currencyConverter">currencyConverter</a> : <a href="api/calculator/GoogleCurrencyConverter.html">GoogleCurrencyConverter</a>
<div class="summaryTableDescription">
   Google currency converter
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#dictionary">dictionary</a> : <a href="api/dictionary/GoogleDictionary.html">GoogleDictionary</a>
<div class="summaryTableDescription">
   Google Dictionary
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#feeds">feeds</a> : <a href="api/feeds/GoogleFeeds.html">GoogleFeeds</a>
<div class="summaryTableDescription">
   Google Feeds Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#images">images</a> : <a href="api/search/images/GoogleImageSearch.html">GoogleImageSearch</a>
<div class="summaryTableDescription">
   Google Image Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#local">local</a> : <a href="api/search/local/GoogleLocalSearch.html">GoogleLocalSearch</a>
<div class="summaryTableDescription">
   Google Local Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#news">news</a> : <a href="api/search/news/GoogleNewsSearch.html">GoogleNewsSearch</a>
<div class="summaryTableDescription">
   Google News Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#patents">patents</a> : <a href="api/search/patents/GooglePatentSearch.html">GooglePatentSearch</a>
<div class="summaryTableDescription">
   Google Patent Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#suggest">suggest</a> : <a href="api/suggest/GoogleSuggest.html">GoogleSuggest</a>
<div class="summaryTableDescription">
   Google Suggest (search hints)
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#translate">translate</a> : <a href="api/translate/GoogleTranslate.html">GoogleTranslate</a>
<div class="summaryTableDescription">
   Google Translate
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#videos">videos</a> : <a href="api/search/videos/GoogleVideoSearch.html">GoogleVideoSearch</a>
<div class="summaryTableDescription">
   Google Video Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#weather">weather</a> : <a href="api/weather/GoogleWeather.html">GoogleWeather</a>
<div class="summaryTableDescription">
   Google Weather Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#web">web</a> : <a href="api/search/web/GoogleWebSearch.html">GoogleWebSearch</a>
<div class="summaryTableDescription">
   Google Web Search
   </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#GoogleAPI()">GoogleAPI</a>(apiKey:String = "")</div>
<div class="summaryTableDescription">
   When making new instance of this class, all API classes will be instantiated.<br/>
   You can signup for an API key here: <a href="http://code.google.com/intl/us-en/apis/ajaxsearch/signup.html">http://code.google.com/intl/us-en/apis/ajaxsearch/signup.html</a>
    </div>
</td><td class="summaryTableOwnerCol">GoogleAPI</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="blogs"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">blogs</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>blogs:<a href="api/search/blogs/GoogleBlogSearch.html">GoogleBlogSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Blog Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get blogs():<a href="api/search/blogs/GoogleBlogSearch.html">GoogleBlogSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set blogs(value:<a href="api/search/blogs/GoogleBlogSearch.html">GoogleBlogSearch</a>):void</code>
<br>
</div>
<a name="books"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">books</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>books:<a href="api/search/books/GoogleBookSearch.html">GoogleBookSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Book Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get books():<a href="api/search/books/GoogleBookSearch.html">GoogleBookSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set books(value:<a href="api/search/books/GoogleBookSearch.html">GoogleBookSearch</a>):void</code>
<br>
</div>
<a name="calculator"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">calculator</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>calculator:<a href="api/calculator/GoogleCalculator.html">GoogleCalculator</a></code>&nbsp;&nbsp;[read-write]<p>
   Google calculator
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get calculator():<a href="api/calculator/GoogleCalculator.html">GoogleCalculator</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set calculator(value:<a href="api/calculator/GoogleCalculator.html">GoogleCalculator</a>):void</code>
<br>
</div>
<a name="currencyConverter"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">currencyConverter</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>currencyConverter:<a href="api/calculator/GoogleCurrencyConverter.html">GoogleCurrencyConverter</a></code>&nbsp;&nbsp;[read-write]<p>
   Google currency converter
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get currencyConverter():<a href="api/calculator/GoogleCurrencyConverter.html">GoogleCurrencyConverter</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set currencyConverter(value:<a href="api/calculator/GoogleCurrencyConverter.html">GoogleCurrencyConverter</a>):void</code>
<br>
</div>
<a name="dictionary"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dictionary</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>dictionary:<a href="api/dictionary/GoogleDictionary.html">GoogleDictionary</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Dictionary
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get dictionary():<a href="api/dictionary/GoogleDictionary.html">GoogleDictionary</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set dictionary(value:<a href="api/dictionary/GoogleDictionary.html">GoogleDictionary</a>):void</code>
<br>
</div>
<a name="feeds"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">feeds</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>feeds:<a href="api/feeds/GoogleFeeds.html">GoogleFeeds</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Feeds Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get feeds():<a href="api/feeds/GoogleFeeds.html">GoogleFeeds</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set feeds(value:<a href="api/feeds/GoogleFeeds.html">GoogleFeeds</a>):void</code>
<br>
</div>
<a name="images"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">images</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>images:<a href="api/search/images/GoogleImageSearch.html">GoogleImageSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Image Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get images():<a href="api/search/images/GoogleImageSearch.html">GoogleImageSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set images(value:<a href="api/search/images/GoogleImageSearch.html">GoogleImageSearch</a>):void</code>
<br>
</div>
<a name="local"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">local</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>local:<a href="api/search/local/GoogleLocalSearch.html">GoogleLocalSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Local Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get local():<a href="api/search/local/GoogleLocalSearch.html">GoogleLocalSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set local(value:<a href="api/search/local/GoogleLocalSearch.html">GoogleLocalSearch</a>):void</code>
<br>
</div>
<a name="news"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">news</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>news:<a href="api/search/news/GoogleNewsSearch.html">GoogleNewsSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google News Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get news():<a href="api/search/news/GoogleNewsSearch.html">GoogleNewsSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set news(value:<a href="api/search/news/GoogleNewsSearch.html">GoogleNewsSearch</a>):void</code>
<br>
</div>
<a name="patents"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">patents</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>patents:<a href="api/search/patents/GooglePatentSearch.html">GooglePatentSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Patent Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get patents():<a href="api/search/patents/GooglePatentSearch.html">GooglePatentSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set patents(value:<a href="api/search/patents/GooglePatentSearch.html">GooglePatentSearch</a>):void</code>
<br>
</div>
<a name="suggest"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">suggest</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>suggest:<a href="api/suggest/GoogleSuggest.html">GoogleSuggest</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Suggest (search hints)
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get suggest():<a href="api/suggest/GoogleSuggest.html">GoogleSuggest</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set suggest(value:<a href="api/suggest/GoogleSuggest.html">GoogleSuggest</a>):void</code>
<br>
</div>
<a name="translate"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">translate</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>translate:<a href="api/translate/GoogleTranslate.html">GoogleTranslate</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Translate
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get translate():<a href="api/translate/GoogleTranslate.html">GoogleTranslate</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set translate(value:<a href="api/translate/GoogleTranslate.html">GoogleTranslate</a>):void</code>
<br>
</div>
<a name="videos"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">videos</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>videos:<a href="api/search/videos/GoogleVideoSearch.html">GoogleVideoSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Video Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get videos():<a href="api/search/videos/GoogleVideoSearch.html">GoogleVideoSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set videos(value:<a href="api/search/videos/GoogleVideoSearch.html">GoogleVideoSearch</a>):void</code>
<br>
</div>
<a name="weather"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">weather</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>weather:<a href="api/weather/GoogleWeather.html">GoogleWeather</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Weather Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get weather():<a href="api/weather/GoogleWeather.html">GoogleWeather</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set weather(value:<a href="api/weather/GoogleWeather.html">GoogleWeather</a>):void</code>
<br>
</div>
<a name="web"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">web</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>web:<a href="api/search/web/GoogleWebSearch.html">GoogleWebSearch</a></code>&nbsp;&nbsp;[read-write]<p>
   Google Web Search
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get web():<a href="api/search/web/GoogleWebSearch.html">GoogleWebSearch</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set web(value:<a href="api/search/web/GoogleWebSearch.html">GoogleWebSearch</a>):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="GoogleAPI()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">GoogleAPI</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function GoogleAPI(apiKey:String = "")</code><p>
   When making new instance of this class, all API classes will be instantiated.<br/>
   You can signup for an API key here: <a href="http://code.google.com/intl/us-en/apis/ajaxsearch/signup.html">http://code.google.com/intl/us-en/apis/ajaxsearch/signup.html</a>
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">apiKey</span>:String</code> (default = "<code></code>")<code></code> &mdash; Enter your Google API key for the AJAX searches here (optional).
   </td>
</tr>
</table>
<br>
<span class="label">Example</span>
<br>Use it like this:
      <div class='listing'><pre>
   var google:GoogleApi=new GoogleApi();
   google.web.search(txtInput.text,0,lang);
   google.web.addEventListener(GoogleSearchEvent.WEB_SEARCH_RESULT,onWebResults) ;
      //If you want to catch the API errors yourself:
   google.web.addEventListener(GoogleAPIErrorEvent.API_ERROR,onAPIError)
      private function onWebResults(e:GoogleSearchEvent):void{
           var resultObject:GoogleSearchResult=e.data as GoogleSearchResult
           trace("Estimated Number of Results: "+resultObject.estimatedNumResults)
           trace("Current page index: "+resultObject.currentPageIndex)
           trace("Number of pages: "+resultObject.numPages)
              for each (var result:GoogleWebItem in resultObject.results){
                   trace(result.title, result.url)
           }
   }
      private function onAPIError(evt:GoogleAPIErrorEvent):void{
           trace("An API error has occured: " + evt.responseDetails, "responseStatus was: " + evt.responseStatus);
   }
   </pre></div>
   <p></p>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
